package com.stox.repository;

import java.util.Date;
import java.util.List;

import com.stox.dto.enumeration.SpanType;
import com.stox.model.Bar;

public interface BarRepository {

	public List<Bar> findByScripId(Long scripId);
	
	public List<Bar> findByScripId(Long scripId, SpanType spanType, Date start, int count);
	
	public List<Bar> findByScripId(Long scripId, SpanType spanType, Date start, Date end);
	
	public Bar save(Bar bar);
	
	public void flush();
	
	public void createPartition(Long scripId);
	
}
